package com.bw.car.feign;

import com.bw.car.domain.Passageway;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "churu-service",path = "chu")
public interface CarFeign {
    @RequestMapping("/rulista")
    List<Passageway>  ru();
    @RequestMapping("/chulist")
    List<Passageway> chu();
}
